[id].vue 89 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267
  1. <template>
  2. <!-- 页面头部 -->
  3. <HomePageHead></HomePageHead>
  4. <!-- 导航栏 -->
  5. <HomePageNavigation></HomePageNavigation>
  6. <!-- 面包屑导航 -->
  7. <!-- <div class="breadcrumb-box">
  8. <div class="inner">
  9. <span class="location">当前位置:</span>
  10. <el-breadcrumb :separator-icon="ArrowRight">
  11. <el-breadcrumb-item>
  12. <NuxtLink to="/">首页</NuxtLink>
  13. </el-breadcrumb-item>
  14. <el-breadcrumb-item>
  15. <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
  16. </el-breadcrumb-item>
  17. <el-breadcrumb-item>
  18. <NuxtLink :to="`list-1.html`"> {{ routLevelTitle }}</NuxtLink>
  19. </el-breadcrumb-item>
  20. <el-breadcrumb-item class="phone_breadcrumb_text">
  21. {{ routeNewsTtitle }}
  22. </el-breadcrumb-item>
  23. </el-breadcrumb>
  24. </div>
  25. </div> -->
  26. <!-- 面包屑导航 -->
  27. <div class="breadcrumb-box">
  28. <div class="inner">
  29. <span class="location">当前位置:</span>
  30. <el-breadcrumb :separator-icon="ArrowRight">
  31. <el-breadcrumb-item>
  32. <NuxtLink to="/">首页</NuxtLink>
  33. </el-breadcrumb-item>
  34. <el-breadcrumb-item>
  35. <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
  36. </el-breadcrumb-item>
  37. <el-breadcrumb-item>
  38. <NuxtLink :to="`list-1.html`"> {{ routLevelTitle }}</NuxtLink>
  39. </el-breadcrumb-item>
  40. <el-breadcrumb-item class="phone_breadcrumb_text">
  41. {{ routeNewsTtitle }}
  42. </el-breadcrumb-item>
  43. </el-breadcrumb>
  44. </div>
  45. </div>
  46. <!-- 资讯列表 -->
  47. <div class="newsDetail">
  48. <!-- <div class="inner"> -->
  49. <div class="innerLeft">
  50. <div class="LeftTop">
  51. <h1>{{ newsDetail.title }}</h1>
  52. <p>
  53. <span>时间:{{ time }}</span>
  54. <span>来源:{{ newsDetail.copyfrom }}</span>
  55. <span>作者:{{ newsDetail.author }}</span>
  56. </p>
  57. </div>
  58. <div
  59. class="leftBottom"
  60. v-html="newsDetail.content"
  61. v-if="newsDetail.content"
  62. @click="openPreview">
  63. </div>
  64. <div v-if="previewVisible" class="preview-modal" @click="closePreview">
  65. <img :src="selectedImage" alt="Preview">
  66. </div>
  67. <!-- 免责声明: -->
  68. <div class="disclaimer" v-if="newsDetail.copyfrom!='本网'">
  69. <p>原文链接:{{ newsDetail.fromurl }}</p>
  70. <p>[免责声明]本文来源于网络转载,仅供学习交流使用,不构成商业目的。 版权归原作者所有,如涉及作品内容,版权和其他问题,请在30日与本网联系,我们将第一时间处理。</p>
  71. </div>
  72. <div v-if="articleChoice">
  73. <!--投票-->
  74. <div class="index_3_box_vote" v-if="articleChoice">
  75. <div class="voteTitle">投票区</div>
  76. <div class="inquire">
  77. <p v-if="voteList.length>0">{{voteList[0].survey_name}}</p>
  78. <div class="radioBox">
  79. <!--投票选项-->
  80. <div v-if="!isDisabled">
  81. <div class="radio" v-if="isRadio">
  82. <el-radio-group v-model="radio1" @change="handleRadioChange">
  83. <el-radio v-for="item in voteList" :key="item.id" :value="item.id" size="large">
  84. <span v-if="item.is_other == 0">{{item.choice_name}}</span>
  85. <span v-else>其他</span>
  86. </el-radio>
  87. </el-radio-group>
  88. <el-input
  89. v-if="showUserChoice"
  90. v-model="userChoice"
  91. :rows="2"
  92. type="textarea"
  93. resize="none"
  94. placeholder="请输入.."
  95. />
  96. </div>
  97. <div class="checkInputBox" v-else>
  98. <el-checkbox-group v-model="check1" @change="handleCheckboxChange">
  99. <span v-for="item in voteList" :key="item.id">
  100. <span v-if="item.is_other == 0">
  101. <el-checkbox size="large" :label="item.choice_name" :value="item.id"/>
  102. </span>
  103. <span v-else>
  104. <el-checkbox size="large" label="其他" :value="item.id"/>
  105. </span>
  106. </span>
  107. </el-checkbox-group>
  108. <el-input
  109. v-if="showUserChoice"
  110. v-model="userChoice"
  111. :rows="2"
  112. type="textarea"
  113. resize="none"
  114. placeholder="请输入.."
  115. />
  116. </div>
  117. </div>
  118. <!--投票结果-->
  119. <div class="inquireData" v-else>
  120. <div v-for="item in websiteSurveyData.data" :key="item.id">
  121. <div class="inquireDataItem active" v-if="item.status == 1">
  122. <div class="inquireDataItemTitle">
  123. <span v-if="item.choice_name == ''">其他</span>
  124. <span v-else>{{item.choice_name}}</span>
  125. </div>
  126. <div class="inquireDataItemNum">{{item.results}}票</div>
  127. </div>
  128. <div class="inquireDataItem" v-else>
  129. <div class="inquireDataItemTitle">
  130. <span v-if="item.choice_name == ''">其他</span>
  131. <span v-else>{{item.choice_name}}</span>
  132. </div>
  133. <div class="inquireDataItemNum">{{item.results}}票</div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. <div class="btn">
  139. <button class="voting" @click="addWebsiteSurvey" :disabled="isDisabled" v-if="!isDisabled">投票</button>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. <!--推荐阅读-->
  145. <!-- <div class="recommendRead" v-if="newsDetail.commendArticle != false">
  146. <div class="recommendReadTitle">
  147. <span class="read_title">
  148. 推荐阅读
  149. </span>
  150. </div>
  151. <div class="recommendReadList">
  152. <div class="recommendReadListTitle" v-for="(item, index) in newsDetail.commendArticle"
  153. :key="item.id">
  154. <a :href="`/${item.alias_pinyin}/${item.id}.html`" v-if="index < 3">
  155. {{ item.title }}
  156. </a>
  157. </div>
  158. </div>
  159. </div> -->
  160. <!--上一篇 下一篇-->
  161. <div class="prevNext">
  162. <NuxtLink to="/">上一篇:李强签署国务院令 公布《行政执法监督条例》</NuxtLink>
  163. <NuxtLink to="/">下一篇:没有了</NuxtLink>
  164. </div>
  165. </div>
  166. <div class="innerRight">
  167. <div class="newsItemsBox">
  168. <div class="new-items-box-title">
  169. <span></span>
  170. <NuxtLink to="/" title="最新资讯"> 最新动态 </NuxtLink>
  171. </div>
  172. <div class="new-items-box-body">
  173. <div class="coniteml zzjj">
  174. <div class="l_img maskLayer">
  175. <NuxtLink class="imgA" to="http://hbfzdy.org.cn/show-139825.html" title="全国统战部长会议在京召开 王沪宁出席并讲话">
  176. <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
  177. </NuxtLink>
  178. <NuxtLink class="maskLayer_text" to="http://hbfzdy.org.cn/show-139825.html" title="全国统战部长会议在京召开 王沪宁出席并讲话">
  179. <span class="zzc">全国统战部长会议在京召开 王沪宁出席并讲话</span>
  180. </NuxtLink>
  181. </div>
  182. <div class="l_img maskLayer">
  183. <NuxtLink class="imgA" to="http://hbfzdy.org.cn/show-139806.html" title="监测数据造假不可为 企业个人的环保法律责任清单">
  184. <img src="http://img.hbfzdy.org.cn/202601/940d7fb8dff31.png" data-src="http://img.hbfzdy.org.cn/202601/940d7fb8dff31.png" data-isloaded="1">
  185. </NuxtLink>
  186. <NuxtLink class="maskLayer_text" to="http://hbfzdy.org.cn/show-139806.html" title="监测数据造假不可为 企业个人的环保法律责任清单">
  187. <span class="zzc">监测数据造假不可为 企业个人的环保法律责任清单</span>
  188. </NuxtLink>
  189. </div>
  190. </div>
  191. <ul class="conitemlList">
  192. <li>
  193. <span>1</span>
  194. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  195. </li>
  196. <li>
  197. <span>2</span>
  198. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  199. </li>
  200. <li>
  201. <span>3</span>
  202. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  203. </li>
  204. <li>
  205. <span>4</span>
  206. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  207. </li>
  208. <li>
  209. <span>5</span>
  210. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  211. </li>
  212. <li>
  213. <span>6</span>
  214. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  215. </li>
  216. <li>
  217. <span>7</span>
  218. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  219. </li>
  220. <li>
  221. <span>8</span>
  222. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  223. </li>
  224. <li>
  225. <span>9</span>
  226. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  227. </li>
  228. <li>
  229. <span>10</span>
  230. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  231. </li>
  232. </ul>
  233. </div>
  234. </div>
  235. <div class="newsItemsBox">
  236. <div class="new-items-box-title">
  237. <span></span>
  238. <NuxtLink to="/" title="最新资讯"> 热点新闻 </NuxtLink>
  239. </div>
  240. <div class="new-items-box-body">
  241. <div class="coniteml2">
  242. <div class="rdxwImg">
  243. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  244. <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
  245. </NuxtLink>
  246. </div>
  247. <div class="rdxwText">
  248. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  249. <h4>全国统战部长会议在京召开 王沪宁出席并讲话</h4>
  250. <p>  1月28日,全国统战部长会议在北京召全国统战部长会议在京召开 王沪宁出席并讲话</p>
  251. </NuxtLink>
  252. </div>
  253. </div>
  254. <div class="coniteml2">
  255. <div class="rdxwImg">
  256. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  257. <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
  258. </NuxtLink>
  259. </div>
  260. <div class="rdxwText">
  261. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  262. <h4>全国统战部长会议在京召开 王沪宁出席并讲话</h4>
  263. <p>  1月28日,全国统战部长会议在北京召全国统战部长会议在京召开 王沪宁出席并讲话</p>
  264. </NuxtLink>
  265. </div>
  266. </div>
  267. <div class="coniteml2">
  268. <div class="rdxwImg">
  269. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  270. <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
  271. </NuxtLink>
  272. </div>
  273. <div class="rdxwText">
  274. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  275. <h4>全国统战部长会议在京召开 王沪宁出席并讲话</h4>
  276. <p>  1月28日,全国统战部长会议在北京召全国统战部长会议在京召开 王沪宁出席并讲话</p>
  277. </NuxtLink>
  278. </div>
  279. </div>
  280. <div class="coniteml2">
  281. <div class="rdxwImg">
  282. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  283. <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
  284. </NuxtLink>
  285. </div>
  286. <div class="rdxwText">
  287. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  288. <h4>全国统战部长会议在京召开 王沪宁出席并讲话</h4>
  289. <p>  1月28日,全国统战部长会议在北京召全国统战部长会议在京召开 王沪宁出席并讲话</p>
  290. </NuxtLink>
  291. </div>
  292. </div>
  293. </div>
  294. </div>
  295. <!-- <DetailHotNews2></DetailHotNews2> -->
  296. </div>
  297. </div>
  298. <!-- 页面底部 -->
  299. <HomeFoot></HomeFoot>
  300. </template>
  301. <script setup>
  302. //1.页面依赖 start ---------------------------------------->
  303. import { onMounted } from 'vue'
  304. import { ElBreadcrumb, ElBreadcrumbItem,ElRadio, ElRadioGroup,ElCheckbox,ElCheckboxGroup,ElMessage,ElInput } from 'element-plus'
  305. import { ArrowRight } from '@element-plus/icons-vue'
  306. const nuxtApp = useNuxtApp();
  307. const axios = nuxtApp.$axios;
  308. //1.1 获得跳转过来的id
  309. const route = useRoute();
  310. const articleId = parseInt(route.params.id); //获得该页面的id
  311. //1.2 获得父级栏目的名称、id
  312. //获得当前的完整路径
  313. const fullPath = route.path;
  314. // //拆分,取出来中间这一段,然后提取数字部分
  315. // const segments = fullPath.split('/');
  316. // const targetSegment = segments[1];
  317. const targetSegment = getRoutePath(1);
  318. const targetSegment1 = getRoutePath(2);
  319. const targetSegment2 = getRoutePath(3);
  320. // const numberPart = targetSegment.match(/\d+$/)?.[0];
  321. // const routeId = numberPart;
  322. let routeId;
  323. //通过导航路径反向查询导航id
  324. const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
  325. method: 'GET',
  326. query: {
  327. 'pinyin': targetSegment+'/'+targetSegment1,
  328. },
  329. });
  330. if(getRouteId.code == 200){
  331. routeId = getRouteId.data.category_id
  332. }else{
  333. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  334. console.log("错误位置:通过url路径查询导航池id")
  335. console.log("后端错误反馈:",getRouteId.message)
  336. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  337. }
  338. //面包屑导航
  339. const parent_name = ref("");
  340. const parent_id = ref("");
  341. const parent_pinyin = ref("");
  342. let getParentNav = async () => {
  343. const listData = await requestDataPromise('/web/getOneWebsiteCategory', {
  344. method: 'GET',
  345. query: {
  346. 'catid': routeId
  347. },
  348. });
  349. console.log("获取面包屑导航",listData);
  350. if (listData.code == 200) {
  351. parent_name.value = listData.data.parent_name;
  352. parent_id.value = listData.data.parent_id;
  353. parent_pinyin.value = listData.data.parent_pinyin;
  354. } else {
  355. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  356. console.log("错误位置:获取面包屑导航")
  357. console.log("后端错误反馈:", listData.message)
  358. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  359. }
  360. }
  361. //获得父级栏目详情
  362. getParentNav();
  363. //1.页面依赖 end ---------------------------------------->
  364. //2.页面数据 start ---------------------------------------->
  365. //2.1 资讯详情
  366. const newsDetail = ref({})
  367. const routeNewsTtitle = ref("");
  368. //2.2 发布日期
  369. const time = ref("");
  370. //2.3 路径
  371. const routLevelTitle = ref("");
  372. const routLevelId = ref("");
  373. //是否展示投票
  374. const articleChoice = ref(false);
  375. //2.4获取详情
  376. async function getPageData() {
  377. const mkdata = await requestDataPromise('/web/selectWebsiteArticleInfo', {
  378. method: 'GET',
  379. query: {
  380. 'articleid': articleId
  381. },
  382. });
  383. if(mkdata.code==200){
  384. //判断是否显示投票
  385. if(mkdata.data.is_survey==1){
  386. console.log("本篇文章含有投票!")
  387. articleChoice.value = true;
  388. getVoteList();
  389. }
  390. //获取内容
  391. newsDetail.value = mkdata.data;
  392. //获取路径
  393. routLevelTitle.value = newsDetail.value.cat_name;
  394. routLevelId.value = newsDetail.value.category_id;
  395. //获取发布时间
  396. time.value = newsDetail.value.updated_at.split(' ')[0];
  397. //修正标题长度
  398. if (newsDetail.value.title.length >= 30) {
  399. routeNewsTtitle.value = newsDetail.value.title.substr(0, 5) + "...";
  400. } else {
  401. routeNewsTtitle.value = newsDetail.value.title
  402. }
  403. }else{
  404. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  405. // console.log("错误位置:获取详情内容")
  406. // console.log("后端错误反馈:",mkdata.message)
  407. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  408. }
  409. }
  410. getPageData();
  411. //2.5 获得广告
  412. //广告列表
  413. let adImg1 = ref([]);
  414. onMounted(async () => {
  415. const { $webUrl, $CwebUrl } = useNuxtApp();
  416. //广告1
  417. let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_detail_0001`
  418. const responseAd1 = await fetch(url, {
  419. headers: {
  420. 'Content-Type': 'application/json',
  421. 'Userurl': $CwebUrl,
  422. 'Origin': $CwebUrl
  423. }
  424. });
  425. const resultAd1 = await responseAd1.json();
  426. adImg1.value = resultAd1.data[0];
  427. })
  428. //2.页面数据 end ---------------------------------------->
  429. //3.设置seo信息 start---------------------------------------->
  430. //3.1 设置seo信息
  431. const setData = await requestDataPromise('/web/selectWebsiteArticleInfo', {
  432. method: 'GET',
  433. query: {
  434. 'articleid': articleId
  435. },
  436. });
  437. if(setData.code==200){
  438. let seoTitle = setData.data.title;
  439. let seoDescription = setData.data.introduce;
  440. let seoKeywords = setData.data.keyword;
  441. let seoSuffix = setData.data.suffix;
  442. let seoName = setData.data.website_name;
  443. useSeoMeta({
  444. title: seoTitle + "_" + seoName + "_" + seoSuffix,
  445. meta: [
  446. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix , tagPriority: 10 },
  447. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix , tagPriority: 10 },
  448. { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no',tagPriority: 10 }
  449. ]
  450. });
  451. }else{
  452. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  453. // console.log("错误位置:设置详情页面SEO数据")
  454. // console.log("后端错误反馈:",setData.message)
  455. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  456. }
  457. //3.设置seo信息 end---------------------------------------->
  458. //4.投票 start---------------------------------------->
  459. const radio1 = ref(''); //单选
  460. const check1 = ref([]); //多选
  461. const isDisabled = ref(false);//是否禁用提交按钮
  462. const isRadio = ref(true);//是否渲染单选
  463. const userSurId = ref('');//投票属于哪一篇文章
  464. const userChoice = ref('');//用于判断用户选择了其他选项以后,输入的值
  465. const userIsChoice = ref('');//用于判断其他选项目前是什么值
  466. const showUserChoice = ref(false);//是否显示其他输入框
  467. const websiteSurveyData = ref([]);//投票结果
  468. //3.2获得投票列表
  469. let voteList = ref([]);
  470. async function getVoteList(){
  471. const voteData = await requestHome('/web/getWebsiteSurvey',{method:'GET',query:{'art_id':articleId}});
  472. console.log(778899)
  473. console.log(voteData)
  474. if(voteData.code == 200){
  475. voteList.value = voteData.data;
  476. console.log(voteList.value)
  477. //判断显示单选还是多选
  478. //survey_type 0是单选 1是多选
  479. if(voteData.data[0].survey_type == 0){
  480. isRadio.value = true;
  481. console.log("1111")
  482. }else{
  483. isRadio.value = false;
  484. }
  485. //把最后一个的值拿出来 用于判断用户是否选择了其他
  486. for(let item of voteData.data){
  487. //如果含有其他
  488. if(item.is_other==1){
  489. userIsChoice.value = item.id;
  490. }
  491. }
  492. //用户投票属于哪一篇文章
  493. userSurId.value = voteData.data[0].sur_id;
  494. }else{
  495. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  496. console.log("错误位置:首页投票")
  497. console.log("后端错误反馈:",voteData.message)
  498. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  499. }
  500. }
  501. //3.2当用户选择了选项,判断是否展示其他输入框
  502. const handleRadioChange = (value) => {
  503. if(value == userIsChoice.value){
  504. showUserChoice.value = true;
  505. }else{
  506. showUserChoice.value = false;
  507. }
  508. }
  509. const handleCheckboxChange = (value) => {
  510. if (value.includes(userIsChoice.value)) {
  511. showUserChoice.value = true;
  512. } else {
  513. showUserChoice.value = false;
  514. }
  515. }
  516. //3.2发起投票
  517. async function addWebsiteSurvey(){
  518. //判断当前是单选还是多选
  519. console.log(isRadio.value)
  520. if(isRadio.value){
  521. console.log("用户单选!")
  522. if(radio1.value!=''){
  523. //先判断一下是否使用了其他选项
  524. if(showUserChoice.value){
  525. if(userChoice.value!=''){
  526. //文章id
  527. // console.log(userSurId.value)
  528. // 用户输入的值
  529. // console.log(userChoice.value)
  530. //如果使用了其他,其他的选项需要增加进去
  531. const ChoiceData = await requestHome('/web/addWebsiteSurveyOption',{
  532. method:'GET',
  533. query:{
  534. 'sur_id':userSurId.value,//投票的新闻id
  535. 'choice_name':userChoice.value,//投票的选项id
  536. }
  537. });
  538. if(ChoiceData.code == 200){
  539. //提交完其他选项以后,再正式发起投票
  540. const mkData = await requestHome('/web/addWebsiteSurveyVote',{
  541. method:'GET',
  542. query:{
  543. 'sur_id':userSurId.value,
  544. 'choice_id':ChoiceData.data
  545. }
  546. });
  547. if(mkData.code == 200){
  548. ElMessage.success('投票成功!')
  549. //把投票结果显示到页面上 禁用投票按钮
  550. isDisabled.value = true;
  551. websiteSurveyData.value = mkData.data;
  552. //遍历一下,把用户选中的那个设置status为1
  553. let data = mkData.data;
  554. //遍历一下,把用户选中的那个设置status为1
  555. for(let item of data.data){
  556. for(let i of data.choice){
  557. if(item.id == i){
  558. console.log(item.id)
  559. item.status = 1;
  560. }
  561. }
  562. }
  563. websiteSurveyData.value = data;
  564. }else{
  565. ElMessage.error(mkData.message)
  566. }
  567. }else{
  568. ElMessage.error('其他投票失败!')
  569. }
  570. }else{
  571. ElMessage.error('请输入选项内容!')
  572. }
  573. }else{
  574. //如果没选择其他,直接提交选择的内容
  575. const mkData = await requestHome('/web/addWebsiteSurveyVote',{
  576. method:'GET',
  577. query:{
  578. 'sur_id':userSurId.value,
  579. 'choice_id':radio1.value
  580. }
  581. });
  582. if(mkData.code == 200){
  583. ElMessage.success('投票成功!')
  584. //把投票结果显示到页面上 禁用投票按钮
  585. isDisabled.value = true;
  586. let data = mkData.data;
  587. //遍历一下,把用户选中的那个设置status为1
  588. for(let item of data.data){
  589. for(let i of data.choice){
  590. if(item.id == i){
  591. item.status = 1;
  592. }
  593. }
  594. }
  595. websiteSurveyData.value = data;
  596. }else{
  597. ElMessage.error('投票失败!')
  598. }
  599. }
  600. }else{
  601. ElMessage.error('请选择一个选项')
  602. }
  603. }else{
  604. console.log("多选!")
  605. //多选
  606. if(check1.value!=[]){
  607. //先判断一下是否使用了其他选项
  608. if(showUserChoice.value){
  609. if(userChoice.value!=''){
  610. //判断用户是否只选择了一个其他
  611. if(check1.value.length == 1){
  612. const ChoiceData = await requestDataPromise('/web/addWebsiteSurveyOption',{
  613. method:'GET',
  614. query:{
  615. 'sur_id':userSurId.value,//投票的新闻id
  616. 'choice_name':userChoice.value,//用户输入的其他选项文字
  617. }
  618. });
  619. if(ChoiceData.code == 200){
  620. //提交完其他选项以后,再正式发起投票
  621. const mkData = await requestDataPromise('/web/addWebsiteSurveyVote',{
  622. method:'GET',
  623. query:{
  624. 'sur_id':userSurId.value,
  625. 'choice_id':ChoiceData.data
  626. }
  627. });
  628. if(mkData.code == 200){
  629. ElMessage.success('投票成功!')
  630. //把投票结果显示到页面上 禁用投票按钮
  631. isDisabled.value = true;
  632. websiteSurveyData.value = mkData.data;
  633. //遍历一下,把用户选中的那个设置status为1
  634. let data = mkData.data;
  635. //遍历一下,把用户选中的那个设置status为1
  636. for(let item of data.data){
  637. for(let i of data.choice){
  638. if(item.id == i){
  639. console.log(item.id)
  640. item.status = 1;
  641. }
  642. }
  643. }
  644. websiteSurveyData.value = data;
  645. }else{
  646. ElMessage.error(mkData.message)
  647. }
  648. }else{
  649. ElMessage.error('其他投票失败!')
  650. }
  651. }else{
  652. //用户选择了除了其他以外,还包括别的选项
  653. const ChoiceData = await requestDataPromise('/web/addWebsiteSurveyOption',{
  654. method:'GET',
  655. query:{
  656. 'sur_id':userSurId.value,//投票的新闻id
  657. 'choice_name':userChoice.value,//用户输入的其他选项文字
  658. }
  659. });
  660. if(ChoiceData.code == 200){
  661. let data = check1.value;
  662. //找到多选的数组,把其他默认值给替换掉
  663. for (let i = 0; i < data.length; i++) {
  664. if (data[i] == userIsChoice.value) {
  665. data[i] = ChoiceData.data;
  666. }
  667. }
  668. let jsonArray = JSON.stringify(data);
  669. //提交完其他选项以后,再正式发起投票
  670. const mkData = await requestDataPromise('/web/addWebsiteSurveyVote',{
  671. method:'GET',
  672. query:{
  673. 'sur_id':userSurId.value,
  674. 'choice_id':jsonArray
  675. }
  676. });
  677. if(mkData.code == 200){
  678. ElMessage.success('投票成功!')
  679. //把投票结果显示到页面上 禁用投票按钮
  680. isDisabled.value = true;
  681. websiteSurveyData.value = mkData.data;
  682. //遍历一下,把用户选中的那个设置status为1
  683. let data = mkData.data;
  684. //遍历一下,把用户选中的那个设置status为1
  685. for(let item of data.data){
  686. for(let i of data.choice){
  687. if(item.id == i){
  688. //console.log(item.id)
  689. item.status = 1;
  690. }
  691. }
  692. }
  693. websiteSurveyData.value = data;
  694. }else{
  695. ElMessage.error(mkData.message)
  696. }
  697. }else{
  698. ElMessage.error('其他投票失败!')
  699. }
  700. }
  701. }else{
  702. ElMessage.error('请输入选项内容!')
  703. }
  704. }else{
  705. let jsonArray = JSON.stringify(check1.value);
  706. //如果没选择其他,直接提交选择的内容
  707. const mkData = await requestDataPromise('/web/addWebsiteSurveyVote',{
  708. method:'GET',
  709. query:{
  710. 'sur_id':userSurId.value,
  711. 'choice_id':jsonArray
  712. }
  713. });
  714. if(mkData.code == 200){
  715. ElMessage.success('投票成功!')
  716. //把投票结果显示到页面上 禁用投票按钮
  717. isDisabled.value = true;
  718. websiteSurveyData.value = mkData.data;
  719. //遍历一下,把用户选中的那个设置status为1
  720. let data = mkData.data;
  721. //遍历一下,把用户选中的那个设置status为1
  722. for(let item of data.data){
  723. for(let i of data.choice){
  724. if(item.id == i){
  725. console.log(item.id)
  726. item.status = 1;
  727. }
  728. }
  729. }
  730. websiteSurveyData.value = data;
  731. }else{
  732. ElMessage.error('投票失败!')
  733. }
  734. }
  735. }else{
  736. ElMessage.error('请选择一个选项')
  737. }
  738. }
  739. }
  740. //4.投票 end---------------------------------------->
  741. //5.页面图片放大 start---------------------------------------->
  742. const previewVisible = ref(false)
  743. const selectedImage = ref(' ')
  744. const openPreview = (event) => {
  745. if (event.target.tagName === 'IMG') {
  746. selectedImage.value = event.target.src;
  747. previewVisible.value = true;
  748. }
  749. }
  750. const closePreview = () => {
  751. previewVisible.value = false;
  752. }
  753. //5.页面图片放大 end---------------------------------------->
  754. </script>
  755. <style lang="less" scoped>
  756. //@import url('@/assets/css/article/pc.less');
  757. //@import url('@/assets/css/article/yd.less');
  758. //面包屑
  759. .breadcrumb-box {
  760. width: 1401px;
  761. margin: 0 auto;
  762. background: #fff;
  763. padding: 0 10PX 0;
  764. padding-left: 11PX;
  765. .inner {
  766. width: 100%;
  767. height: 50PX;
  768. margin-top: 14px;
  769. padding-top: 20PX;
  770. // margin-bottom: 20px;
  771. font-family: Microsoft YaHei, Microsoft YaHei;
  772. font-weight: 400;
  773. font-size: 20px;
  774. color: #666666;
  775. text-align: left;
  776. font-style: normal;
  777. text-transform: none;
  778. display: flex;
  779. align-items: center;
  780. border-bottom: 1PX solid #ccc;
  781. // border-bottom: 1px dashed #ccc;
  782. // margin-bottom: 10px;
  783. // padding: 20px 20px 20px 0;
  784. box-sizing: border-box;
  785. a {
  786. font-size: 16px;
  787. color: #000;
  788. line-height: 20px;
  789. }
  790. span {
  791. font-size: 16px;
  792. color: #000;
  793. line-height: 20px;
  794. &.location {
  795. line-height: 20px;
  796. }
  797. }
  798. }
  799. }
  800. .leftBottom::v-deep p img,
  801. .leftBottom::v-deep img,
  802. .leftBottom::v-deep video {
  803. max-width: 700px;
  804. }
  805. .leftBottom::v-deep h1,
  806. .leftBottom::v-deep h2,
  807. .leftBottom::v-deep h3,
  808. .leftBottom::v-deep h4,
  809. .leftBottom::v-deep h5,
  810. .leftBottom::v-deep h6 {
  811. font-size: 20px;
  812. font-weight: 500;
  813. }
  814. //投票
  815. .index_3_box_vote {
  816. .voteTitle {
  817. font-size: 20px;
  818. height: 40px;
  819. line-height: 40px;
  820. color: #333333;
  821. padding-left: 20px;
  822. width: 100%;
  823. border-bottom: 1px solid #E7E7E7;
  824. border-top: 1px solid #139602;
  825. box-sizing: border-box;
  826. }
  827. width:100%;
  828. box-sizing:border-box;
  829. border:solid 1px #FBFBFB;
  830. background: #FBFBFB;
  831. .inquire {
  832. height: 394px;
  833. margin-top: 20px;
  834. border-radius: 6px 6px 6px 6px;
  835. padding: 4px 40px 4px 6px;
  836. box-sizing: border-box;
  837. p {
  838. font-weight: bold;
  839. height: 69px;
  840. font-family: PingFang SC, PingFang SC;
  841. font-size: 20px;
  842. color: #333333;
  843. line-height: 21px;
  844. text-align: left;
  845. font-style: normal;
  846. text-transform: none;
  847. padding: 12px 20px 0 32px;
  848. }
  849. .radioBox {
  850. height: 250px;
  851. padding-left: 30px;
  852. overflow-y: auto;
  853. box-sizing: border-box;
  854. padding-bottom: 20px;
  855. }
  856. .radio {
  857. /deep/.el-radio {
  858. --el-radio-input-border-color-hover: #27881a;
  859. }
  860. /deep/.el-radio-group {
  861. align-items: center;
  862. display: inline-flex;
  863. flex-wrap: wrap;
  864. font-size: 0;
  865. //padding-left: 35px;
  866. }
  867. /deep/.el-radio.el-radio--large {
  868. width: 100%;
  869. height: 29px;
  870. margin-bottom: 15px;
  871. }
  872. /deep/.el-radio.el-radio--large .el-radio__label {
  873. font-family: PingFang SC, PingFang SC;
  874. font-weight: 400;
  875. font-size: 16px;
  876. color: #333333;
  877. white-space: nowrap;
  878. overflow: hidden;
  879. text-overflow: ellipsis;
  880. width: 300px;
  881. }
  882. /deep/.el-radio.el-radio--large .el-radio__inner {
  883. height: 16px;
  884. width: 16px;
  885. }
  886. /deep/.el-radio__input.is-checked+.el-radio__label {
  887. color: #27881a;
  888. }
  889. /deep/.el-radio__input.is-checked .el-radio__inner {
  890. background: #33b023;
  891. border-color: #27881a;
  892. }
  893. }
  894. .checkInputBox {
  895. /deep/.el-checkbox {
  896. --el-radio-input-border-color-hover: #27881a;
  897. }
  898. /deep/.el-checkbox-group {
  899. align-items: center;
  900. display: inline-flex;
  901. flex-wrap: wrap;
  902. font-size: 0;
  903. //padding-left: 35px;
  904. }
  905. /deep/.el-checkbox.el-checkbox--large {
  906. width: 330px;
  907. height: 29px;
  908. margin-bottom: 15px;
  909. }
  910. /deep/.el-checkbox.el-checkbox--large .el-checkbox__label {
  911. font-family: PingFang SC, PingFang SC;
  912. font-weight: 400;
  913. font-size: 16px;
  914. color: #333333;
  915. white-space: nowrap;
  916. overflow: hidden;
  917. text-overflow: ellipsis;
  918. width: 300px;
  919. }
  920. /deep/.el-checkbox.el-checkbox--large .el-checkbox__inner {
  921. height: 16px;
  922. width: 16px;
  923. }
  924. /deep/.el-checkbox__input.is-checked+.el-checkbox__label {
  925. color: #27881a;
  926. }
  927. /deep/.el-checkbox__input.is-checked .el-checkbox__inner {
  928. background: #33b023;
  929. border-color: #27881a;
  930. }
  931. }
  932. .btn {
  933. padding-left: 30px;
  934. button {
  935. width: 78px;
  936. height: 37px;
  937. line-height: 37px;
  938. border-radius: 6px;
  939. border: none;
  940. font-family: PingFang SC, PingFang SC;
  941. font-weight: 400;
  942. font-size: 16px;
  943. color: #999999;
  944. }
  945. .voting {
  946. background-color: #49A769;
  947. color: #fff;
  948. margin-right: 44px;
  949. cursor: pointer;
  950. }
  951. .look {
  952. cursor: pointer;
  953. }
  954. }
  955. }
  956. .inquireData {
  957. .inquireDataItem {
  958. width: 100%;
  959. height: 38px;
  960. display: flex;
  961. align-items: center;
  962. justify-content: space-between;
  963. background: #F3F3F3;
  964. border: 1px solid #D2D2D2;
  965. margin-bottom: 10px;
  966. border-radius: 6px;
  967. padding: 0 15px;
  968. box-sizing: border-box;
  969. color: #999999;
  970. .inquireDataItemTitle {
  971. width: 290px;
  972. height: 38px;
  973. font-size: 16px;
  974. line-height: 38px;
  975. white-space: nowrap;
  976. overflow: hidden;
  977. text-overflow: ellipsis;
  978. }
  979. .inquireDataItemNum {
  980. font-size: 16px;
  981. }
  982. }
  983. .active {
  984. color: #49A769;
  985. background: #dff7e8;
  986. border: 1px solid #49A769;
  987. }
  988. }
  989. }
  990. //放大图片
  991. .preview-modal {
  992. position: fixed;
  993. top: 0;
  994. left: 0;
  995. width: 100%;
  996. height: 100%;
  997. background: rgba(0, 0, 0, 0.8);
  998. display: flex;
  999. justify-content: center;
  1000. align-items: center;
  1001. z-index: 1000;
  1002. }
  1003. .preview-modal img {
  1004. max-width: 100%;
  1005. max-height: 100%;
  1006. cursor: pointer;
  1007. }
  1008. //上一篇 下一篇
  1009. .prevNext {
  1010. // border-bottom: 1px solid #ccc;
  1011. padding-bottom: 10px;
  1012. margin-top: 45PX;
  1013. a {
  1014. display: block;
  1015. color: #333;
  1016. font-size: 15px;
  1017. display: block;
  1018. height: 40px;
  1019. line-height: 40px;
  1020. margin-bottom: 20PX;
  1021. &:hover {
  1022. color: #0071B7;
  1023. }
  1024. }
  1025. }
  1026. .breadcrumb-box{width:1400PX;margin:0px auto 0px; }
  1027. .el-breadcrumb{height:22PX;line-height:22PX;}
  1028. .breadcrumb-box .inner span.location{font-size:16PX;;height:22PX;;line-height:22PX; font-weight:normal;word-break: keep-all; white-space: nowrap;}
  1029. .breadcrumb-box .inner a{font-size:16PX;;height:22PX;line-height:22PX;display:inline-block; font-weight:normal;}
  1030. .breadcrumb-box .phone_breadcrumb_text /deep/.el-breadcrumb__inner{font-size:16PX;;height:22PX;line-height:22PX;
  1031. font-weight:normal;}
  1032. .breadcrumb-box:deep(.el-icon){width:16PX;height:16PX;}
  1033. .breadcrumb-box .inner span{font-size:16PX;height:22PX;line-height:22PX;}
  1034. .prevNext a{height:22PX;line-height:22PX;font-size:15PX;width:100%;
  1035. display:block;word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  1036. }
  1037. @media screen and (min-width: 1401px) {
  1038. //你的样式
  1039. .newsDetail{
  1040. width: 1401PX;
  1041. margin: 0 auto 10PX;
  1042. overflow: hidden;
  1043. font-size: 16px;
  1044. // background: red;
  1045. display: flex;
  1046. align-items: flex-start;
  1047. justify-content: space-between;
  1048. background: #fff;
  1049. // margin-top: 20PX;
  1050. padding: 0 10PX;
  1051. .innerLeft{
  1052. float:left;
  1053. overflow: hidden;
  1054. width: 65%;
  1055. // background: red;
  1056. .LeftTop {
  1057. >h1 {
  1058. display: block;
  1059. width: 100%;
  1060. height: auto;
  1061. // color: #454749;
  1062. line-height: 40PX;
  1063. font-weight: normal;
  1064. font-size: 24PX;
  1065. color: #333333;
  1066. text-align: center;
  1067. }
  1068. >p {
  1069. width: 100%;
  1070. height: 40PX;
  1071. text-align: center;
  1072. line-height: 26PX;
  1073. // border-bottom: 1PX solid #ccc;
  1074. border-bottom: 1px dashed #ccc;
  1075. span {
  1076. padding: 0 10PX;
  1077. font-size: 15PX;
  1078. color: #454749;
  1079. }
  1080. }
  1081. >img {
  1082. display: inline-block;
  1083. max-width: 100%;
  1084. overflow: hidden;
  1085. margin: 20PX auto;
  1086. text-align: center;
  1087. vertical-align: middle;
  1088. }
  1089. }
  1090. .leftBottom {
  1091. margin-top: 20PX;
  1092. font-size: 18PX;
  1093. line-height: 38PX;
  1094. // margin-bottom: 30PX;
  1095. word-break:break-all;
  1096. ul>li img {
  1097. width: 790PX;
  1098. height: 382PX;
  1099. }
  1100. img {
  1101. width: 790PX;
  1102. height: 382PX;
  1103. }
  1104. p.tinymce-material {
  1105. img {
  1106. width: 790PX;
  1107. }
  1108. }
  1109. >h3,
  1110. >p {
  1111. text-indent: 2em;
  1112. width: 790PX;
  1113. font-family: "宋体";
  1114. font-size: 18PX;
  1115. color: #333;
  1116. line-height: 38PX;
  1117. padding-bottom: 30PX;
  1118. font-weight: normal;
  1119. img {
  1120. width: 790PX;
  1121. }
  1122. }
  1123. >h3 {
  1124. font-weight: 600PX;
  1125. }
  1126. >p {
  1127. text-indent: 2em;
  1128. font-weight: 400;
  1129. }
  1130. }
  1131. .disclaimer {
  1132. width: 790PX;
  1133. overflow: hidden;
  1134. border-top: 1PX solid #e6e6e6;
  1135. padding: 30PX 0PX;
  1136. color: #999999;
  1137. font-size: 18PX;
  1138. p {
  1139. text-indent: 2em;
  1140. width: 790PX;
  1141. line-height: 30PX;
  1142. }
  1143. }
  1144. .recommendRead {
  1145. width: 100%;
  1146. margin: 30PX 0PX 20PX0;
  1147. .recommendReadTitle {
  1148. font-size: 18PX;
  1149. color: #001996;
  1150. height: 42PX;
  1151. line-height: 35PX;
  1152. letter-spacing: 1PX;
  1153. text-align: left;
  1154. font-style: normal;
  1155. text-transform: none;
  1156. border-bottom: 1PX solid #D9D9D9;
  1157. .read_title {
  1158. display: inline-block;
  1159. text-align: center;
  1160. width: 94PX;
  1161. height: 40PX;
  1162. border-bottom: 2PX solid #158d91;
  1163. }
  1164. }
  1165. .recommendReadList {
  1166. min-height: 155PX;
  1167. margin-top: 20PX;
  1168. padding-bottom: 10PX;
  1169. font-size: 16PX;
  1170. border-bottom: 1PX solid #D9D9D9;
  1171. .recommendReadListTitle {
  1172. margin-top: 18PX;
  1173. a {
  1174. &:hover {
  1175. color: #158d91;
  1176. }
  1177. color: #333333;
  1178. }
  1179. }
  1180. .recommendReadListTitle:nth-child(1)::after {
  1181. content: "热";
  1182. margin-left: 13PX;
  1183. background: #FF8A37;
  1184. color: #fff;
  1185. font-size: 14PX;
  1186. padding: 0PX 2PX;
  1187. }
  1188. .recommendReadListTitle:hover a {
  1189. color: #158d91;
  1190. }
  1191. }
  1192. }
  1193. }
  1194. .innerRight{
  1195. width: 32%;
  1196. float: right;
  1197. overflow: hidden;
  1198. margin: 25PX auto;
  1199. box-sizing: border-box;
  1200. // background: blue;
  1201. .newsItemsBox {
  1202. width: 100%;
  1203. height: auto;
  1204. // padding: 10PX 0;
  1205. // background: blue;
  1206. .new-items-box-title {
  1207. // margin-bottom: 10PX;
  1208. width: 100%;
  1209. height: 36PX;
  1210. line-height: 36PX;
  1211. border-bottom: 2PX solid #83E515;
  1212. // background: yellow;
  1213. span{
  1214. width: 46PX;
  1215. height: 31PX;
  1216. background: url(../../../public/image/icon_gddt.jpg) no-repeat center center;
  1217. background-size: 100% 100%;
  1218. display: block;
  1219. height: 31PX;
  1220. float: left;
  1221. margin: 2PX;
  1222. }
  1223. a{
  1224. width: 88PX;
  1225. float: left;
  1226. display: block;
  1227. font-size: 16PX;
  1228. text-align: center;
  1229. color: #065500;
  1230. font-weight: bold;
  1231. // margin-left: 10px;
  1232. // border-bottom: 2PX solid #2b96f1;
  1233. // background: red;
  1234. }
  1235. }
  1236. .new-items-box-body{
  1237. padding: 10PX 10PX ;
  1238. .coniteml{
  1239. width: 100%;
  1240. height: auto;
  1241. // overflow: hidden;
  1242. // padding: 10PX 10PX ;
  1243. display: flex;
  1244. align-items: center;
  1245. justify-content: space-between;
  1246. margin-bottom: 20PX;
  1247. .l_img{
  1248. width: 48%;
  1249. // background: red;
  1250. height: auto;
  1251. // float: left;
  1252. // overflow: hidden;
  1253. .imgA{
  1254. display: block;
  1255. height: 100PX;
  1256. img{
  1257. vertical-align: middle;
  1258. // display: block ;
  1259. bottom: 0;
  1260. width: 100%;
  1261. height: 100%;
  1262. // margin-top: -20PX;
  1263. }
  1264. }
  1265. }
  1266. }
  1267. .coniteml2{
  1268. width: 100%;
  1269. height: auto;
  1270. overflow: hidden;
  1271. margin: 10PX 0;
  1272. .rdxwImg{
  1273. width: 34%;
  1274. height: 92PX;
  1275. float: left;
  1276. overflow: hidden;
  1277. a{
  1278. text-decoration: none;
  1279. img{
  1280. display: block;
  1281. width: 100%;
  1282. height: 100%;
  1283. }
  1284. }
  1285. }
  1286. .rdxwText{
  1287. width: 63%;
  1288. height: auto;
  1289. overflow: hidden;
  1290. float: right;
  1291. a{
  1292. text-decoration: none;
  1293. h4{
  1294. display: block;
  1295. width: 100%;
  1296. height: 20PX;
  1297. line-height: 20PX;
  1298. overflow: hidden;
  1299. font-size: 14PX;
  1300. color: #000;
  1301. font-weight: bold;
  1302. }
  1303. p{
  1304. width: 100%;
  1305. height: 50PX;
  1306. line-height: 24PX;
  1307. font-size: 15PX;
  1308. color: #333;
  1309. margin: 0;
  1310. overflow: hidden;
  1311. display: -webkit-box;
  1312. -webkit-box-orient: vertical;
  1313. -webkit-line-clamp: 2;
  1314. overflow: hidden;
  1315. text-overflow: ellipsis;
  1316. word-break: break-all;
  1317. text-indent: 2em;
  1318. }
  1319. }
  1320. }
  1321. }
  1322. .zzjj{
  1323. // margin-bottom: 40PX;
  1324. .maskLayer{
  1325. position: relative;
  1326. height: 100PX;
  1327. width: 49%;
  1328. .maskLayer_text{
  1329. .zzc{
  1330. position: absolute;
  1331. bottom: 0;
  1332. left: 0;
  1333. background: rgba(0, 0, 0, .5);
  1334. color: #fff;
  1335. display: block;
  1336. width: 100%;
  1337. line-height: 30PX;
  1338. overflow: hidden;
  1339. text-align: center;
  1340. font-size: 16PX;
  1341. }
  1342. }
  1343. }
  1344. }
  1345. .conitemlList{
  1346. width: 100%;
  1347. height: auto;
  1348. overflow: hidden;
  1349. // background: blue;
  1350. li{
  1351. width: 100%;
  1352. height: 30PX;
  1353. display: flex;
  1354. align-items: center;
  1355. justify-content:space-between;
  1356. span{
  1357. width: 4%;
  1358. display: inline-block;
  1359. height: 15PX;
  1360. font-size: 15PX;
  1361. line-height: 15PX;
  1362. text-align: center;
  1363. float: left;
  1364. overflow: hidden;
  1365. margin-right: 6PX;
  1366. }
  1367. a{
  1368. display: inline-block;
  1369. line-height: 34PX;
  1370. width: 96%;
  1371. // background: green;
  1372. font-size: 15PX;
  1373. color: #454749;
  1374. margin-top: 0;
  1375. overflow: hidden;
  1376. text-overflow: ellipsis;
  1377. white-space: nowrap;
  1378. }
  1379. a:hover{
  1380. color: #83E515;
  1381. }
  1382. }
  1383. }
  1384. .conitemlList li:nth-child(1) span{
  1385. background: #ff7500;
  1386. color: #fff;
  1387. }
  1388. .conitemlList li:nth-child(2) span{
  1389. background: #ffa400;
  1390. color: #fff;
  1391. }
  1392. .conitemlList li:nth-child(3) span{
  1393. background: #f6c20e;
  1394. color: #fff;
  1395. }
  1396. }
  1397. }
  1398. }
  1399. }
  1400. }
  1401. @media screen and (min-width: 801px) and (max-width: 1400px) {
  1402. //你的样式
  1403. .newsDetail{
  1404. min-width: 801PX;
  1405. max-width: 1400PX;
  1406. margin: 0 auto 10PX;
  1407. overflow: hidden;
  1408. font-size: 16px;
  1409. // background: red;
  1410. display: flex;
  1411. align-items: flex-start;
  1412. justify-content: space-between;
  1413. background: #fff;
  1414. // margin-top: 20PX;
  1415. padding: 0 10PX;
  1416. .innerLeft{
  1417. float:left;
  1418. overflow: hidden;
  1419. width: 65%;
  1420. // background: red;
  1421. .LeftTop {
  1422. >h1 {
  1423. display: block;
  1424. width: 100%;
  1425. height: auto;
  1426. // color: #454749;
  1427. line-height: 40PX;
  1428. font-weight: normal;
  1429. font-size: 24PX;
  1430. color: #333333;
  1431. text-align: center;
  1432. }
  1433. >p {
  1434. width: 100%;
  1435. height: 40PX;
  1436. text-align: center;
  1437. line-height: 26PX;
  1438. // border-bottom: 1PX solid #ccc;
  1439. border-bottom: 1px dashed #ccc;
  1440. span {
  1441. padding: 0 10PX;
  1442. font-size: 15PX;
  1443. color: #454749;
  1444. }
  1445. }
  1446. >img {
  1447. display: inline-block;
  1448. max-width: 100%;
  1449. overflow: hidden;
  1450. margin: 20PX auto;
  1451. text-align: center;
  1452. vertical-align: middle;
  1453. }
  1454. }
  1455. .leftBottom {
  1456. margin-top: 20PX;
  1457. font-size: 18PX;
  1458. line-height: 38PX;
  1459. // margin-bottom: 30PX;
  1460. word-break:break-all;
  1461. ul>li img {
  1462. width: 790PX;
  1463. height: 382PX;
  1464. }
  1465. img {
  1466. width: 790PX;
  1467. height: 382PX;
  1468. }
  1469. p.tinymce-material {
  1470. img {
  1471. width: 790PX;
  1472. }
  1473. }
  1474. >h3,
  1475. >p {
  1476. text-indent: 2em;
  1477. width: 790PX;
  1478. font-family: "宋体";
  1479. font-size: 18PX;
  1480. color: #333;
  1481. line-height: 38PX;
  1482. padding-bottom: 30PX;
  1483. font-weight: normal;
  1484. img {
  1485. width: 790PX;
  1486. }
  1487. }
  1488. >h3 {
  1489. font-weight: 600PX;
  1490. }
  1491. >p {
  1492. text-indent: 2em;
  1493. font-weight: 400;
  1494. }
  1495. }
  1496. .disclaimer {
  1497. width: 790PX;
  1498. overflow: hidden;
  1499. border-top: 1PX solid #e6e6e6;
  1500. padding: 30PX 0PX;
  1501. color: #999999;
  1502. font-size: 18PX;
  1503. p {
  1504. text-indent: 2em;
  1505. width: 790PX;
  1506. line-height: 30PX;
  1507. }
  1508. }
  1509. .recommendRead {
  1510. width: 100%;
  1511. margin: 30PX 0PX 20PX0;
  1512. .recommendReadTitle {
  1513. font-size: 18PX;
  1514. color: #001996;
  1515. height: 42PX;
  1516. line-height: 35PX;
  1517. letter-spacing: 1PX;
  1518. text-align: left;
  1519. font-style: normal;
  1520. text-transform: none;
  1521. border-bottom: 1PX solid #D9D9D9;
  1522. .read_title {
  1523. display: inline-block;
  1524. text-align: center;
  1525. width: 94PX;
  1526. height: 40PX;
  1527. border-bottom: 2PX solid #158d91;
  1528. }
  1529. }
  1530. .recommendReadList {
  1531. min-height: 155PX;
  1532. margin-top: 20PX;
  1533. padding-bottom: 10PX;
  1534. font-size: 16PX;
  1535. border-bottom: 1PX solid #D9D9D9;
  1536. .recommendReadListTitle {
  1537. margin-top: 18PX;
  1538. a {
  1539. &:hover {
  1540. color: #158d91;
  1541. }
  1542. color: #333333;
  1543. }
  1544. }
  1545. .recommendReadListTitle:nth-child(1)::after {
  1546. content: "热";
  1547. margin-left: 13PX;
  1548. background: #FF8A37;
  1549. color: #fff;
  1550. font-size: 14PX;
  1551. padding: 0PX 2PX;
  1552. }
  1553. .recommendReadListTitle:hover a {
  1554. color: #158d91;
  1555. }
  1556. }
  1557. }
  1558. }
  1559. .innerRight{
  1560. width: 32%;
  1561. float: right;
  1562. overflow: hidden;
  1563. margin: 25PX auto;
  1564. box-sizing: border-box;
  1565. // background: blue;
  1566. .newsItemsBox {
  1567. width: 100%;
  1568. height: auto;
  1569. // padding: 10PX 0;
  1570. // background: blue;
  1571. .new-items-box-title {
  1572. // margin-bottom: 10PX;
  1573. width: 100%;
  1574. height: 36PX;
  1575. line-height: 36PX;
  1576. border-bottom: 2PX solid #83E515;
  1577. // background: yellow;
  1578. span{
  1579. width: 46PX;
  1580. height: 31PX;
  1581. background: url(../../../public/image/icon_gddt.jpg) no-repeat center center;
  1582. background-size: 100% 100%;
  1583. display: block;
  1584. height: 31PX;
  1585. float: left;
  1586. margin: 2PX;
  1587. }
  1588. a{
  1589. width: 88PX;
  1590. float: left;
  1591. display: block;
  1592. font-size: 16PX;
  1593. text-align: center;
  1594. color: #065500;
  1595. font-weight: bold;
  1596. // margin-left: 10px;
  1597. // border-bottom: 2PX solid #2b96f1;
  1598. // background: red;
  1599. }
  1600. }
  1601. .new-items-box-body{
  1602. padding: 10PX 10PX ;
  1603. .coniteml{
  1604. width: 100%;
  1605. height: auto;
  1606. // overflow: hidden;
  1607. // padding: 10PX 10PX ;
  1608. display: flex;
  1609. align-items: center;
  1610. justify-content: space-between;
  1611. margin-bottom: 20PX;
  1612. .l_img{
  1613. width: 48%;
  1614. // background: red;
  1615. height: auto;
  1616. // float: left;
  1617. // overflow: hidden;
  1618. .imgA{
  1619. display: block;
  1620. height: 100PX;
  1621. img{
  1622. vertical-align: middle;
  1623. // display: block ;
  1624. bottom: 0;
  1625. width: 100%;
  1626. height: 100%;
  1627. // margin-top: -20PX;
  1628. }
  1629. }
  1630. }
  1631. }
  1632. .coniteml2{
  1633. width: 100%;
  1634. height: auto;
  1635. overflow: hidden;
  1636. margin: 10PX 0;
  1637. .rdxwImg{
  1638. width: 34%;
  1639. height: 92PX;
  1640. float: left;
  1641. overflow: hidden;
  1642. a{
  1643. text-decoration: none;
  1644. img{
  1645. display: block;
  1646. width: 100%;
  1647. height: 100%;
  1648. }
  1649. }
  1650. }
  1651. .rdxwText{
  1652. width: 63%;
  1653. height: auto;
  1654. overflow: hidden;
  1655. float: right;
  1656. a{
  1657. text-decoration: none;
  1658. h4{
  1659. display: block;
  1660. width: 100%;
  1661. height: 20PX;
  1662. line-height: 20PX;
  1663. overflow: hidden;
  1664. font-size: 14PX;
  1665. color: #000;
  1666. font-weight: bold;
  1667. }
  1668. p{
  1669. width: 100%;
  1670. height: 50PX;
  1671. line-height: 24PX;
  1672. font-size: 15PX;
  1673. color: #333;
  1674. margin: 0;
  1675. overflow: hidden;
  1676. display: -webkit-box;
  1677. -webkit-box-orient: vertical;
  1678. -webkit-line-clamp: 2;
  1679. overflow: hidden;
  1680. text-overflow: ellipsis;
  1681. word-break: break-all;
  1682. text-indent: 2em;
  1683. }
  1684. }
  1685. }
  1686. }
  1687. .zzjj{
  1688. // margin-bottom: 40PX;
  1689. .maskLayer{
  1690. position: relative;
  1691. height: 100PX;
  1692. width: 49%;
  1693. .maskLayer_text{
  1694. .zzc{
  1695. position: absolute;
  1696. bottom: 0;
  1697. left: 0;
  1698. background: rgba(0, 0, 0, .5);
  1699. color: #fff;
  1700. display: block;
  1701. width: 100%;
  1702. line-height: 30PX;
  1703. overflow: hidden;
  1704. text-align: center;
  1705. font-size: 16PX;
  1706. }
  1707. }
  1708. }
  1709. }
  1710. .conitemlList{
  1711. width: 100%;
  1712. height: auto;
  1713. overflow: hidden;
  1714. // background: blue;
  1715. li{
  1716. width: 100%;
  1717. height: 30PX;
  1718. display: flex;
  1719. align-items: center;
  1720. justify-content:space-between;
  1721. span{
  1722. width: 4%;
  1723. display: inline-block;
  1724. height: 15PX;
  1725. font-size: 15PX;
  1726. line-height: 15PX;
  1727. text-align: center;
  1728. float: left;
  1729. overflow: hidden;
  1730. margin-right: 6PX;
  1731. }
  1732. a{
  1733. display: inline-block;
  1734. line-height: 34PX;
  1735. width: 96%;
  1736. // background: green;
  1737. font-size: 15PX;
  1738. color: #454749;
  1739. margin-top: 0;
  1740. overflow: hidden;
  1741. text-overflow: ellipsis;
  1742. white-space: nowrap;
  1743. }
  1744. a:hover{
  1745. color: #83E515;
  1746. }
  1747. }
  1748. }
  1749. .conitemlList li:nth-child(1) span{
  1750. background: #ff7500;
  1751. color: #fff;
  1752. }
  1753. .conitemlList li:nth-child(2) span{
  1754. background: #ffa400;
  1755. color: #fff;
  1756. }
  1757. .conitemlList li:nth-child(3) span{
  1758. background: #f6c20e;
  1759. color: #fff;
  1760. }
  1761. }
  1762. }
  1763. }
  1764. }
  1765. }
  1766. @media screen and (max-width: 800px) {
  1767. //你的样式
  1768. .breadcrumb-box {
  1769. max-width: 100%;
  1770. height: 80PX;
  1771. // padding: 0 10PX;
  1772. // margin-top: 20PX;
  1773. overflow: hidden;
  1774. text-align: center;
  1775. }
  1776. .breadcrumb-box .inner{
  1777. max-width: 98%;
  1778. margin-bottom: 25PX;
  1779. overflow: hidden;
  1780. padding: 40PX 20PX -10PX;
  1781. margin-top: 10PX;
  1782. white-space: nowrap;
  1783. a{
  1784. font-size: 30px;
  1785. }
  1786. }
  1787. .prevNext{
  1788. margin: 20PX 0;
  1789. }
  1790. .newsDetail{
  1791. max-width: 800PX;
  1792. margin: 0 auto 10PX;
  1793. overflow: hidden;
  1794. font-size: 16px;
  1795. // background: red;
  1796. display: flex;
  1797. flex-wrap: wrap;
  1798. // align-items: flex-start;
  1799. // justify-content: space-between;
  1800. background: #fff;
  1801. // margin-top: 20PX;
  1802. padding: 0 20PX;
  1803. .innerLeft{
  1804. float:left;
  1805. overflow: hidden;
  1806. width: 100%;
  1807. // background: red;
  1808. .LeftTop {
  1809. >h1 {
  1810. display: block;
  1811. width: 100%;
  1812. height: auto;
  1813. // color: #454749;
  1814. line-height: 40PX;
  1815. font-weight: normal;
  1816. font-size: 44px;
  1817. color: #333333;
  1818. text-align: center;
  1819. }
  1820. >p {
  1821. width: 100%;
  1822. height: 40PX;
  1823. text-align: center;
  1824. line-height: 26PX;
  1825. // border-bottom: 1PX solid #ccc;
  1826. border-bottom: 1px dashed #ccc;
  1827. span {
  1828. padding: 0 10PX;
  1829. font-size: 28px;
  1830. color: #454749;
  1831. }
  1832. }
  1833. >img {
  1834. display: inline-block;
  1835. max-width: 100%;
  1836. overflow: hidden;
  1837. margin: 20PX auto;
  1838. text-align: center;
  1839. vertical-align: middle;
  1840. }
  1841. }
  1842. .leftBottom {
  1843. margin-top: 20PX;
  1844. font-size: 18PX;
  1845. line-height: 38PX;
  1846. // margin-bottom: 30PX;
  1847. word-break:break-all;
  1848. ul>li img {
  1849. width: 790PX;
  1850. height: 382PX;
  1851. }
  1852. img {
  1853. width: 790PX;
  1854. height: 382PX;
  1855. }
  1856. p.tinymce-material {
  1857. img {
  1858. width: 790PX;
  1859. }
  1860. }
  1861. >h3,
  1862. >p {
  1863. text-indent: 2em;
  1864. width: 790PX;
  1865. font-family: "宋体";
  1866. font-size: 28px;
  1867. color: #333;
  1868. line-height: 38PX;
  1869. padding-bottom: 30PX;
  1870. font-weight: normal;
  1871. img {
  1872. width: 790PX;
  1873. }
  1874. }
  1875. >h3 {
  1876. font-weight: 600PX;
  1877. }
  1878. >p {
  1879. text-indent: 2em;
  1880. font-weight: 400;
  1881. }
  1882. }
  1883. .disclaimer {
  1884. width: 790PX;
  1885. overflow: hidden;
  1886. border-top: 1PX solid #e6e6e6;
  1887. padding: 30PX 0PX;
  1888. color: #999999;
  1889. font-size: 18PX;
  1890. p {
  1891. text-indent: 2em;
  1892. width: 790PX;
  1893. line-height: 30PX;
  1894. }
  1895. }
  1896. .recommendRead {
  1897. width: 100%;
  1898. margin: 30PX 0PX 20PX0;
  1899. .recommendReadTitle {
  1900. font-size: 18PX;
  1901. color: #001996;
  1902. height: 42PX;
  1903. line-height: 35PX;
  1904. letter-spacing: 1PX;
  1905. text-align: left;
  1906. font-style: normal;
  1907. text-transform: none;
  1908. border-bottom: 1PX solid #D9D9D9;
  1909. .read_title {
  1910. display: inline-block;
  1911. text-align: center;
  1912. width: 94PX;
  1913. height: 40PX;
  1914. border-bottom: 2PX solid #158d91;
  1915. }
  1916. }
  1917. .recommendReadList {
  1918. min-height: 155PX;
  1919. margin-top: 20PX;
  1920. padding-bottom: 10PX;
  1921. font-size: 16PX;
  1922. border-bottom: 1PX solid #D9D9D9;
  1923. .recommendReadListTitle {
  1924. margin-top: 18PX;
  1925. a {
  1926. &:hover {
  1927. color: #158d91;
  1928. }
  1929. color: #333333;
  1930. }
  1931. }
  1932. .recommendReadListTitle:nth-child(1)::after {
  1933. content: "热";
  1934. margin-left: 13PX;
  1935. background: #FF8A37;
  1936. color: #fff;
  1937. font-size: 14PX;
  1938. padding: 0PX 2PX;
  1939. }
  1940. .recommendReadListTitle:hover a {
  1941. color: #158d91;
  1942. }
  1943. }
  1944. }
  1945. }
  1946. .innerRight {
  1947. width: 100%;
  1948. // float: right;
  1949. overflow: hidden;
  1950. margin: 20PX auto;
  1951. box-sizing: border-box;
  1952. .newsItemsBox {
  1953. width: 100%;
  1954. height: auto;
  1955. // padding: 10PX 0;
  1956. // background: blue;
  1957. .new-items-box-title {
  1958. // margin-bottom: 10PX;
  1959. width: 100%;
  1960. height: 36PX;
  1961. line-height: 36PX;
  1962. border-bottom: 2PX solid #83E515;
  1963. // background: yellow;
  1964. span{
  1965. width: 46PX;
  1966. height: 31PX;
  1967. background: url(../../../public/image/icon_gddt.jpg) no-repeat center center;
  1968. background-size: 100% 100%;
  1969. display: block;
  1970. height: 31PX;
  1971. float: left;
  1972. margin: 2PX;
  1973. }
  1974. a{
  1975. width: 88PX;
  1976. float: left;
  1977. display: block;
  1978. font-size: 16PX;
  1979. text-align: center;
  1980. color: #065500;
  1981. font-weight: bold;
  1982. // margin-left: 10px;
  1983. // border-bottom: 2PX solid #2b96f1;
  1984. // background: red;
  1985. }
  1986. }
  1987. .new-items-box-body{
  1988. padding: 10PX 10PX ;
  1989. .coniteml{
  1990. width: 100%;
  1991. height: auto;
  1992. // overflow: hidden;
  1993. // padding: 10PX 10PX ;
  1994. display: flex;
  1995. align-items: center;
  1996. justify-content: space-between;
  1997. margin-bottom: 90PX;
  1998. .l_img{
  1999. width: 48%;
  2000. // background: red;
  2001. height: auto;
  2002. // float: left;
  2003. // overflow: hidden;
  2004. .imgA{
  2005. display: block;
  2006. height: 112.5PX;
  2007. img{
  2008. vertical-align: middle;
  2009. // display: block ;
  2010. bottom: 5PX;
  2011. width: 100%;
  2012. height: 100%;
  2013. // margin-top: -20PX;
  2014. }
  2015. }
  2016. }
  2017. }
  2018. .coniteml2{
  2019. width: 100%;
  2020. height: auto;
  2021. overflow: hidden;
  2022. margin: 10PX 0;
  2023. .rdxwImg{
  2024. width: 34%;
  2025. height: 92PX;
  2026. float: left;
  2027. overflow: hidden;
  2028. a{
  2029. text-decoration: none;
  2030. img{
  2031. display: block;
  2032. width: 100%;
  2033. height: 100%;
  2034. }
  2035. }
  2036. }
  2037. .rdxwText{
  2038. width: 63%;
  2039. height: auto;
  2040. overflow: hidden;
  2041. float: right;
  2042. margin-top: 10PX;
  2043. a{
  2044. text-decoration: none;
  2045. h4{
  2046. display: block;
  2047. width: 100%;
  2048. height: 20PX;
  2049. line-height: 20PX;
  2050. overflow: hidden;
  2051. font-size: 28px;
  2052. color: #000;
  2053. font-weight: bold;
  2054. }
  2055. h4:hover{
  2056. color: #83E515;
  2057. }
  2058. p{
  2059. width: 100%;
  2060. height: 50PX;
  2061. line-height: 24PX;
  2062. font-size: 30px;
  2063. color: #333;
  2064. margin: 0;
  2065. overflow: hidden;
  2066. display: -webkit-box;
  2067. -webkit-box-orient: vertical;
  2068. -webkit-line-clamp: 2;
  2069. overflow: hidden;
  2070. text-overflow: ellipsis;
  2071. word-break: break-all;
  2072. text-indent: 2em;
  2073. }
  2074. p:hover{
  2075. color: #83E515;
  2076. }
  2077. }
  2078. }
  2079. }
  2080. .zzjj{
  2081. // margin-bottom: 40PX;
  2082. .maskLayer{
  2083. position: relative;
  2084. height: 37.5PX;
  2085. line-height: 37.5PX;
  2086. width: 49%;
  2087. .maskLayer_text{
  2088. height: 37.5PX;
  2089. .zzc{
  2090. position: absolute;
  2091. bottom: -75PX;
  2092. height: 37.5PX;
  2093. left: 0;
  2094. background: rgba(0, 0, 0, .5);
  2095. color: #fff;
  2096. display: block;
  2097. width: 100%;
  2098. line-height: 37.5PX;
  2099. overflow: hidden;
  2100. text-align: center;
  2101. font-size: 16PX;
  2102. }
  2103. }
  2104. }
  2105. }
  2106. .conitemlList{
  2107. width: 100%;
  2108. height: auto;
  2109. overflow: hidden;
  2110. // background: blue;
  2111. li{
  2112. width: 100%;
  2113. height: 30PX;
  2114. display: flex;
  2115. align-items: center;
  2116. justify-content:space-between;
  2117. span{
  2118. width: 4%;
  2119. display: inline-block;
  2120. height: 15PX;
  2121. font-size: 15PX;
  2122. line-height: 15PX;
  2123. text-align: center;
  2124. float: left;
  2125. overflow: hidden;
  2126. margin-right: 6PX;
  2127. }
  2128. a{
  2129. display: inline-block;
  2130. line-height: 34PX;
  2131. width: 96%;
  2132. // background: green;
  2133. font-size: 34px;
  2134. color: #454749;
  2135. margin-top: 0;
  2136. overflow: hidden;
  2137. text-overflow: ellipsis;
  2138. white-space: nowrap;
  2139. }
  2140. a:hover{
  2141. color: #83E515;
  2142. }
  2143. }
  2144. }
  2145. .conitemlList li:nth-child(1) span{
  2146. background: #ff7500;
  2147. color: #fff;
  2148. }
  2149. .conitemlList li:nth-child(2) span{
  2150. background: #ffa400;
  2151. color: #fff;
  2152. }
  2153. .conitemlList li:nth-child(3) span{
  2154. background: #f6c20e;
  2155. color: #fff;
  2156. }
  2157. }
  2158. }
  2159. }
  2160. }
  2161. // .newsDetail .inner{display:block;width:100%;}
  2162. // .newsDetail .inner .innerLeft{width:100%;}
  2163. // .newsDetail .inner .innerRight{width:100%;}
  2164. // .breadcrumb-box .phone_breadcrumb_text /deep/.el-breadcrumb__inner{width:100PX;
  2165. // display:block;word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  2166. // }
  2167. // .newsDetail .inner .innerLeft .recommendRead .recommendReadTitle .read_title{width:auto;}
  2168. // .newsDetail .inner .innerLeft .leftBottom{line-height:33PX;}
  2169. }
  2170. </style>